package com.tudouji.project.customer.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.tudouji.framework.aspectj.lang.annotation.Excel;
import com.tudouji.framework.web.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 账户应收账款流水对象 receivableflow
 * 
 * @author tudouji
 * @date 2022-05-19
 */
@Data
public class Receivableflow extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String guid;

    /** 客户id */
    @Excel(name = "客户id")
    private String customerid;

    /** 关联表 */
    @Excel(name = "关联交易id")
    private String linkedTable;

    /** 关联交易id */
    @Excel(name = "关联交易id")
    private Long linkid;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal amount;

    /** 应收账款余额(交易后金额) */
    @Excel(name = "应收账款余额(交易后金额)")
    private BigDecimal recbalance;

    /** 1-应收款登记，2-回款 */
    @Excel(name = "1-应收款登记，2-回款")
    private Integer type;

    /** 操作人id */
    @Excel(name = "操作人id")
    private String operatorid;

    /** 操作人 */
    @Excel(name = "操作人")
    private String operator;

    /** 最后更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastupdate;

    /** 业务编号 */
    @Excel(name = "业务编号")
    private String code;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createtime;
    private Date minCreatetime;
}
